package com.wr.sqlSession;

import com.wr.pojo.Configuration;

/**
 * @author 王瑞
 * @Description :
 * @date 2020/1/29 - 20:47
 */
public class DeafaultSqlSessionFactory implements SqlSessionFactory {

    private Configuration configuration;

    public DeafaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}

